package com.bjmashibing.system;

import com.bjmashibing.system.huawei.jdbc.SpringJdbcTemplate;
import com.bjmashibing.system.huawei.udp_cmd;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @Classname Test
 * @Description TODO
 * @Date 2020/9/17/017 18:50
 * @Created by Administrator
 */
public class Test {
    private final static Logger logger = LoggerFactory.getLogger(Test.class);
    @org.junit.Test
    public void test1() {
        logger.info("主机账号:" + "str_machine" + ";防区号:" + "str_number" + "\r\n事件代码:" +"str_data_pure");
    }

    @org.junit.Test
    public void test_database() {
        /*JdbcPrimary jdbcDemo1 = new JdbcPrimary();
        jdbcDemo1.OperMysql();

        JdbcDruid jdbcDruid = new JdbcDruid();
        jdbcDruid.Insert();*/

        SpringJdbcTemplate springJdbcTemplate = new SpringJdbcTemplate();

        String str_machine = "86123456710";

        springJdbcTemplate.machine_insert(str_machine,4,"6.43","物联卡");
//        springJdbcTemplate.machine_queryForOne(str_machine);
//        springJdbcTemplate.machine_queryForMap("864513042013711");
//        springJdbcTemplate.machine_query_domain(str_machine);
//        springJdbcTemplate.machine_list_query();
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////
        String str_token = "115AHCSfzBEvoUBuyVwIYEslxTpzSusNRzCMBtHJvx__pRxzTrx5y33JfGYzOm9EVpd-VShWppZ-uJCvQwemeWPP_mfTTgqwdkVaXgqonSsObs9rh1SoNsRajDkB3v2_fxhpA";
//        springJdbcTemplate.token_insert2(str_token,"China","brandHONOR",38);


//        springJdbcTemplate.token_insert(str_token,"China","brandHONOR",str_machine);
//        springJdbcTemplate.token_queryForMap(str_token);
//        springJdbcTemplate.token_query_domain(str_token);
//        springJdbcTemplate.token_list_query();



//        springJdbcTemplate.delete();
//        springJdbcTemplate.queryForMap();
//        springJdbcTemplate.queryForList();
    }


}
